<div id="left">
<div id="versetul-zilei">
<h2>Versetul de azi</h2>
<p class="verset"><?php require_once ("/includes/mysql_connect.php"); //Realizeaza conexiunea la baza de date.
$query = "SELECT verse_id FROM verses";
$result = @mysql_query($query);
$num_rows = mysql_num_rows($result);
$number = rand(1, $num_rows);
//Creeaza interogarea/
$query = "SELECT verse, ref FROM verses ORDER BY RAND() LIMIT 1";
$result = @mysql_query($query);
//Ruleaza interogarea
if ($result) //Daca totul a mers bine afiseaza inregistrarile
{
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
	{
		$verse = $row['verse'];
		$ref = $row['ref'];
		echo "".$verse. "";
		echo "<br><small>".$ref."</small>";
		
	}
	mysql_free_result($result);
}
else
{
echo "error";
}
?></p>
</div>
<div id="maxime">
<h2>O vorba</h2>
<p class="max"><?php require_once ("/includes/mysql_connect.php"); //Realizeaza conexiunea la baza de date.
$query = "SELECT quote_id FROM quotes";
$result = @mysql_query($query);
$num_rows = mysql_num_rows($result);
$number = rand(1, $num_rows);
//Creeaza interogarea/
$query = "SELECT quote, author FROM quotes ORDER BY RAND() LIMIT 1";
$result = @mysql_query($query);
//Ruleaza interogarea
if ($result) //Daca totul a mers bine afiseaza inregistrarile
{
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
	{
		$quote = $row['quote'];
		$author = $row['author'];
		echo "".$quote. "";
		echo "<br><small>".$author."</small>";
		
	}
	mysql_free_result($result);
}
else
{
echo "error";
}
?>
</p>
</div>
<div id="virtual">
<h2>Altceva</h2>
<p class="campionat">poll</p>
</div>
</div>
